package com.sc.pattern.gate;

/**
 * Created  on 2018/1/6.
 *
 * @author sc
 */
public class Client {
    public static void main(String[] args) {
        Gate gate = new Gate();

        Human human = new Human("baobao","beijing",gate);
        Human human1 = new Human("xiaopang","shenzhen",gate);
        Human human2 = new Human("sc","shanghai",gate);

        human.start();
        human1.start();
        human2.start();
    }

}
